package com.own.component.autoconfig.property.message;

import com.own.constant.ConstantValue;
import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * MessageProperties
 *
 * @author chenxueli
 * @date 2022-08-15 11:32:00
 */
@Data
@SpringBootConfiguration
@ConfigurationProperties(prefix = MessageProperties.PREFIX)
@SuppressWarnings("all")
public class MessageProperties {

    public static final String PREFIX = ConstantValue.CONFIG_VALUE_CONTENT + "message";

    /**
     * 移动短信服务参数
     */
    @NestedConfigurationProperty
    private MobileProperty mobile;
    /**
     * 联通短信服务参数
     */
    @NestedConfigurationProperty
    private UnicomProperty unicom;

}
